//
//  UIImageView+MSImageView.h
//  TakeOutForBusiness
//
//  Created by iOS on 2017/5/4.
//  Copyright © 2017年 GSKJ. All rights reserved.
//

#import <UIKit/UIKit.h>

/** 包装SDWebImage（⚠️加载gif图时不要直接使用UIImageView，使用SDAnimatedImageView） */
@interface UIImageView (MSImageView)

- (void)ms_setImageWithURLString:(nullable NSString *)URLString;
- (void)ms_setImageWithURL:(nullable NSURL *)url;
- (void)ms_setImageWithURLString:(nullable NSString *)URLString
                placeholderImage:(nullable UIImage *)img;
- (void)ms_setImageWithURL:(nullable NSURL *)url
          placeholderImage:(nullable UIImage *)img;
- (void)ms_setImageWithURL:(nullable NSURL *)url
          placeholderImage:(nullable UIImage *)placeholder
                   options:(SDWebImageOptions)options
                 completed:(nullable SDExternalCompletionBlock)completedBlock;
- (void)ms_setImageWithURLString:(nullable NSString *)URLString
                placeholderImage:(nullable UIImage *)placeholder
                         options:(SDWebImageOptions)options
                       completed:(nullable SDExternalCompletionBlock)completedBlock;
- (void)ms_setImageWithURL:(nullable NSURL *)url
                 completed:(nullable SDExternalCompletionBlock)completedBlock;
- (void)ms_setImageWithURLString:(nullable NSString *)URLString
                       completed:(nullable SDExternalCompletionBlock)completedBlock;

@end
